<?php if (isset($opList)) foreach ($opList as $opMsg) { ?>
    <li class="am-list-item" style="border:none; padding: 10px 0px;">
        <div class="web-op-list-img-div">
            <img src="<?= $_SESSION['user_avatar'] ?>" class="am-circle web-op-list-img"/>
        </div>
        <div class="web-op-list-content">
            <div class="am-fl">
                <div style="padding-bottom: 10px">
                    <?php if (!empty($opMsg[0])) { ?>
                        <b class="web-main-color am-text-xl"><?= $opMsg[0]; ?></b>
                    <?php } ?>
                    <span class="web-tittle-color"><?= $opMsg[1]; ?></span>
                    <span class="app-main-color"><?= $opMsg[2]; ?></span>
                </div>
                <div class="am-text-xs">
                    <span class="web-gray-color"><?= substr($opMsg[3], 0, 16); ?></span>
                    &nbsp;&nbsp;
                    <span class="web-tittle-color"><?= $opMsg[4]; ?></span>
                </div>
            </div>
            <img src="<?= $opMsg[5] ?>" class="am-fr <?php if (isset($opMsg[6])) echo $opMsg[6] ?>"
                 style="width: auto; height: 50px;"/>
        </div>
    </li>
<?php } ?>